Skip to content

Add metadata to AOD#7501

Closed
nburmaso wants to merge 3 commits into
AliceO2Group:devfrom
nburmaso:aod-metadata
Closed

Add metadata to AOD#7501
nburmaso wants to merge 3 commits into
AliceO2Group:devfrom
nburmaso:aod-metadata

Conversation

@nburmaso

@nburmaso nburmaso commented Nov 3, 2021

Copy link
Copy Markdown
Contributor

@jgrosseo: This update partially covers O2-2656. TMap does not include ProducerROOTVersion, as I did not find a way to fetch it from the framework in format like heads/v5-34-00-patches.

@sawenzel: Metadata is written to AOD before any tables, so that TMap could be written separately outside of DF. Tables should be written by aod-writer in update mode, so that metadata is not purged.

This PR will be updated following changes in #7497 related to MC/RAW input data type.

I'm not sure if I write TMap object correctly, so please take a look

@nburmaso nburmaso closed this Nov 3, 2021
@nburmaso nburmaso deleted the aod-metadata branch November 3, 2021 08:41
// note: `--aod-writer-resmode "UPDATE"` have to be used,
// so that metadata is not overwritten
mResFile += ".root";
auto* fResFile = TFile::Open(mResFile, "UPDATE");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be written by using some O2 framework functions instead of doing it manually?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice, but I'm not aware of a method that would allow writing an object outside of DF folder. Also, the code in this PR got mixed with some older code, so I will make another PR, where we can continue discussion :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ktf could you comment?

Options{
ConfigParamSpec{"aod-timeframe-id", VariantType::Int64, -1L, {"Set timeframe number"}},
ConfigParamSpec{"enable-truncation", VariantType::Int, 1, {"Truncation parameter: 1 -- on, != 1 -- off"}},
ConfigParamSpec{"prod-tags", VariantType::String, "LHC21Axx,pass1,LHC15o,pass1", {"Comma separated list of production tags: `LPMProductionTag,AnchorPassName,AnchorProduction,RecoPassName`"}},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose one configSpec for each of the four strings

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, this would be better. Done in #7503

@nburmaso nburmaso mentioned this pull request Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants